package com.niannian.dialog;

import com.niannian.R;
import android.content.Context;
import android.view.View;
import android.widget.TextView;

public class DeleteMenberDialog extends BaseDialog implements android.view.View.OnClickListener {

	private TextView btn_delete_member;
	private onSimpleOnMListener mOnManListener;

	public DeleteMenberDialog(Context context) {
		super(context);
		init();
	}

	private void init() {
		setContentView(R.layout.dialog_delete);
		btn_delete_member = (TextView) findViewById(R.id.btn_delete_member);
		btn_delete_member.setOnClickListener(this);

	}

	public void setOnMListener(onSimpleOnMListener listener) {
		mOnManListener = listener;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_delete_member:

			mOnManListener.onM();
			dismiss();

		default:
			break;
		}
	}

	@Override
	public void dismiss() {
		if (isShowing()) {
			super.dismiss();
		}
	}

	public interface onSimpleOnMListener {
		public void onM();
	}

}
